package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.festivalgift.FestivalGiftData;
import com.yanqu.road.entity.activity.patronsfund.PatronsFundBuyData;
import com.yanqu.road.entity.activity.patronsfund.PatronsFundConditionCom;
import com.yanqu.road.entity.activity.patronsfund.PatronsFundUser;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class PatronsFundBusiness {

    public static Map<Integer, Map<Integer, PatronsFundBuyData>> getPatronsFundBuyData(long userId) {
        return DaoHelper.getPatronsFundDaoImpl().getPatronsFundBuyData( userId);
    }

    public static boolean addPatronsFundBuyData(PatronsFundBuyData patronsFundBuyData) {
        return DaoHelper.getPatronsFundDaoImpl().add(patronsFundBuyData);
    }

    public static boolean updatePatronsFundBuyData(PatronsFundBuyData patronsFundBuyData) {
        return DaoHelper.getPatronsFundDaoImpl().update(patronsFundBuyData);
    }

    public static Map<Integer, PatronsFundUser> getPatronsFundBuyData(long userId, int activityId) {
        return DaoHelper.getPatronsFundUserDaoImpl().getPatronsFundUser(userId, activityId);
    }

    public static boolean addPatronsFundUser(PatronsFundUser patronsFundUser) {
        return DaoHelper.getPatronsFundUserDaoImpl().add(patronsFundUser);
    }

    public static boolean updatePatronsFundUser(PatronsFundUser patronsFundUser) {
        return DaoHelper.getPatronsFundUserDaoImpl().update(patronsFundUser);
    }

    public static Map<Integer, PatronsFundConditionCom> getPatronsFundConditionCom(long userId, int activityId) {
        return DaoHelper.getPatronsFundConditionComDaoImpl().getPatronsFundConditionCom(userId, activityId);
    }

    public static boolean addPatronsFundConditionCom(PatronsFundConditionCom patronsFundConditionCom) {
        return DaoHelper.getPatronsFundConditionComDaoImpl().add(patronsFundConditionCom);
    }

    public static boolean updatePatronsFundConditionCom(PatronsFundConditionCom patronsFundConditionCom) {
        return DaoHelper.getPatronsFundConditionComDaoImpl().update(patronsFundConditionCom);
    }


}
